<template>
	<!-- 商品购买 -->
	<view class="content">
		<view class="background">
			<view class="userInfo">
				<image src="../../static/usermap.png" mode=""></image>
				<view class="right">
					<view style="margin-left: 24rpx;">
						<text style="font-weight: 700;
font-size: 32rpx;">江先生，135****3729</text>
						<text style="font-size: 24rpx;
color: #999999;margin-top: 24rpx;">广东省广州市白云区嘉禾街道206号</text>
					</view>
					<u-icon @click="address" name='arrow-right'></u-icon>
				</view>
			</view>
			<view class="shopItem">
				<image src="" mode=""></image>
				<view class="shopRight">
					<view>肯德基香辣鸡腿堡抵用券20元</view>
					<view class="right-cont">
						<view class="">
							2000<text>元</text>
						</view>
						<u-number-box v-model="value" @change="valChange"></u-number-box>
					</view>
				</view>
			</view>
			<view class="payment">
				<text style="font-size: 32rpx;">实付款</text>
				<view >
					<text style="color: #fe6000;font-size: 46rpx;font-weight: 700;">2000</text>
					 <text style="color: #fe6000;">元</text>
				</view>
			</view>
			<u-button :custom-style="customStyle" >支付</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: 1,
				customStyle: {
					fontSize: '32rpx',
					borderRadius: '16rpx',
					background: '#1677FE',
					height: '100rpx',
					margin: '0rpx 55rpx 60rpx',
					color:"#fff"
				}
			}
		},
		methods:{
			address(){
				uni.navigateTo({
					url:"/pages/intelligentLife/addressList"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.background {
		height: 160rpx;
		background: #1677FE;

		.userInfo {
			padding: 36rpx 40rpx;
			border: 1rpx solid #CCCCCC;
			box-shadow: 0 6rpx 20rpx 0 #99999933;
			border-radius: 16rpx;
			background: #fff;
			display: flex;
			position: relative;
			margin: 0 24rpx 90rpx;
			top: 60rpx;
			z-index: 99;

			image {
				display: block;
				width: 60rpx;
				height: 60rpx;
			}

			.right {
				display: flex;
				flex: 1;
				justify-content: space-between;
				align-items: center;

				view {
					display: flex;
					flex-direction: column;
				}
			}
		}

		.shopItem {
			display: flex;
			align-items: center;
			border: 1rpx solid #CCCCCC;
			box-shadow: 0 6rpx 20rpx 0 #99999933;
			border-radius: 16rpx;
			padding: 24rpx;
			margin: 0 24rpx;
			image {
				width: 180rpx;
				height: 180rpx;
				background: #CCCCCC;
			}
			.shopRight{
				flex: 1;
				margin-left: 24rpx;
			}
			.right-cont {
				display: flex;
				align-items: center;
				justify-content: space-between;
				color: #FE6000;
				margin-top: 90rpx;
				view{
					font-size: 36rpx;
					font-weight: 700;
					text{
						font-size: 24rpx;
					}
				}
			}
		}
		.payment{
			padding:65rpx 24rpx 160rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
	}
</style>